<include file="Public:top" />    
<script src="__PUBLIC__/js/jquery.bday-picker.js"></script>
<script>
$(function(){
	var options={
			"dateFormat": "bigEndian",
			"wraper":"span",
			//"legend":"日期选择"
	};
	$("#datechange").birthdaypicker(options);
})
</script>

	</head>
  
	<body >
    
    <div id="body-wrapper" > <!-- Wrapper for the radial gradient background -->		

        <!--left start-->
		
        <include file="Public:left" /> 
        <!--left end-->
        
        
        <!-- End #sidebar -->			
		<div id="main-content"> <!-- Main Content Section with everything -->
        <div  id="header_logo">{:C("SITE_INFO.name")}</div>	 		
			
			<!-- Page Head -->
			<div style="float:left; width:180px;">
			  <h2>商品统计列表  </h2></div>
			  <div id="sreach" style="width:730px;">
            <form name="sreach" method="get" action="{:U('index')}">
            	<a class="button" href="{:U('Cproducts/ToExcel')}?provcode={$provcode}&citycode={$citycode}&area_id={$area_id}&category={$category}&status={$status}&showflag={$showflag}&year={$year}&month={$month}&day={$day}" >导出数据</a>
            	  {:W('Shengshi',array('now_city_id'=>$citycode,'now_prov_id'=>$provcode,'now_area_id'=>$area_id))}
              <strong>分类:</strong>
              <select onChange="document.sreach.submit(); return false;" name="category">
                <foreach name="cate" item="vo">
                	<option value="<if condition="$vo['id'] eq 0"><else/>{$vo.id}</if>"   <if condition="$vo['id'] eq $category ">selected="selected"</if>>{$vo.text}</option>
                </foreach>
              </select><br/><br/>
               &nbsp;<strong>发布状态:</strong>
              <select onChange="document.sreach.submit(); return false;" name="status">
                <option value="-1" <if condition="$status eq -1">selected="selected"</if> >All Status</option>
                 <option value="1" <if condition="$status eq 1 ">selected="selected"</if> >已发布</option>  
                <option value="0"<if condition="$status eq 0 ">selected="selected"</if> >未发布</option>
                            
              </select>
              &nbsp;<strong>销售状态:</strong>
              <select onChange="document.sreach.submit(); return false;" name="showflag">
                <option value="-1" <if condition="$showflag eq -1">selected="selected"</if> >All Status</option>
                 <option value="1" <if condition="$showflag eq 1 ">selected="selected"</if> >已售出</option>  
                <option value="0"<if condition="$showflag eq 0 ">selected="selected"</if> >销售中</option>
                            
              </select>
              &nbsp;<strong>日期：</strong>
              <span id="datechange"></span>
              <!-- <input type="text" value="{$keyword}" style="width:150px;" class="text-input " id="keyword" name="keyword"> -->
              <strong><a onClick="document.sreach.submit(); return false;" href="#">Search</a></strong>
            </form>
            </div>
            
			<div class="clear"></div> <!-- End .clear -->
            {$msg}
               <div class="content-box"><!-- Start Content Box -->                  
                  <div class="content-box-header">  
                      
                      <span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"> 
               		       搜索日期：{$year}-{$month}-{$day}</span>
                     <!--  <a href="{:U('detail')}">+ insert </a>&nbsp; &nbsp; </span> -->
                    <div class="clear"></div>                      
                  </div> <!-- End .content-box-header -->
                  
                  <div class="content-box-content">
                      <div class="tab-content default-tab" id="tab1">                       
                      <!-- This is the target div. id must match the href of this div's tab -->	
                      
                          
                          <table id="list">
                            <thead>
                              <tr >		   
                                  <th>ID</th>
                                  <th>日期<!-- {:createUpDownLink('day')} --></th>   
                                 <!-- <th  >Category</th>  -->                             
                                  <th  >数量</th>                                                                                       
                                  <th  width="200" style="text-align:center">操作</th>									   						 
                              </tr>								
                            </thead> 
                            
                   
                
                            <tbody>                              
                            <volist name="infoList" id="vo" mod="2">


                            	<tr align="center" <eq name="mod" value="1">class="alt-row"</eq>>
                                	<td align="left" class="first-cell" >
                                      {$key}
                                      </td>
                                      <td align="left">
                                      {$vo.day}
                                      </td>
                                    
                                      <td align="center">
                                      		{$vo.c}
                                      </td>
                                     
                                      <td align="center" >   
                                       <a href="{:U('detail',array('day'=>$vo['day'],'category'=>$category,'status'=>$status,'showflag'=>$showflag,'provcode'=>$provcode,'citycode'=>$citycode,'area_id'=>$area_id))}" title="Edit">Detail</a> &nbsp; &nbsp;                              
                                        
                                      </td>
                                    </tr> 
                                            
                              </volist>
                            </tbody>
                          </table>
                          <div class="pagination">{$page}<div style=" clear:both;"></div></div>						
                      </div> <!-- End #tab1 -->	
                                       
                      
                  </div> <!-- End .content-box-content -->
                  
              </div> <!-- End .content-box -->
             
			
			
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
			

			
			<!-- End Notifications -->
			
            <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2013
				</small>
			</div>
			
			
			
			<!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>
	</body>
<!-- Download From www.exet.tk-->
</html>